import {SearchVO, User} from "@/typings";
import requestWithToken from "@/utils/request";

export const listUser = (searchVO: SearchVO) => {
    return requestWithToken("/user/list", 'GET', searchVO)
}
export const updateUser = (user: User) => {
    return requestWithToken("/user/update", 'POST', user)
}
export const deleteUser = (id: string) => {
    return requestWithToken("/user/delete", 'get', {id})
}
export const getUser = (id: string) => {
    return requestWithToken("/user/get", "get", {userId:id})
}